<?php /* Smarty version 2.6.26, created on 2011-07-28 15:41:08
         compiled from mailing/queCreator.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'mailing/queCreator.tpl', 10, false),)), $this); ?>
Wybierz wiadomości
<div id="messages">
    <div id="status">test</div>
    <table>
        <tr>
            <td>ID</td><td>Treść</td>
        </tr>
<?php $_from = $this->_tpl_vars['messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
<?php echo '<tr bgcolor="'; ?><?php echo smarty_function_cycle(array('values' => "#aaaaaa,#bbbbbb"), $this);?><?php echo '"><td>'; ?><?php echo $this->_tpl_vars['i']['MessageId']; ?><?php echo '</td><td><div id="popup" ><a id="'; ?><?php echo $this->_tpl_vars['i']['MessageId']; ?><?php echo '">Podgląd<span>'; ?><?php echo $this->_tpl_vars['i']['message_content']; ?><?php echo '</span></a></div></td></tr>'; ?>

<?php endforeach; endif; unset($_from); ?>
    </table>
</div>
<?php echo '<script type="text/javascript">
$(document).ready(function(){
       $("div#messages a").click(function(){
       $.post("index.php", { site: \'mailing\', action: \'prepareMessage\', MessageId: this.id},callForSite(\'mailing\',\'main\',\'createQue2\') );
       
        });
});


</script>
'; ?>